using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeostatisticalAnalystTools._WorkingwithGeostatisticalLayers
{
    /// <summary>
    /// <para>Calculate Z-value</para>
    /// <para>Uses the interpolation model in a geostatistical layer to predict a value at a single location.</para>
    /// <para>使用地统计图层中的插值模型来预测单个位置的值。</para>
    /// </summary>    
    [DisplayName("Calculate Z-value")]
    public class GACalculateZValue : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GACalculateZValue()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_geostat_layer">
        /// <para>Input geostatistical layer</para>
        /// <para>The geostatistical layer to be analyzed.</para>
        /// <para>要分析的地统计图层。</para>
        /// </param>
        /// <param name="_point_coord">
        /// <para>Input point</para>
        /// <para>The x,y coordinate of the point for which the Z-value will be calculated.</para>
        /// <para>将计算其 Z 值的点的 x，y 坐标。</para>
        /// </param>
        public GACalculateZValue(object _in_geostat_layer, object _point_coord)
        {
            this._in_geostat_layer = _in_geostat_layer;
            this._point_coord = _point_coord;
        }
        public override string ToolboxName => "Geostatistical Analyst Tools";

        public override string ToolName => "Calculate Z-value";

        public override string CallName => "ga.GACalculateZValue";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_geostat_layer, _point_coord, _out_z_value];

        /// <summary>
        /// <para>Input geostatistical layer</para>
        /// <para>The geostatistical layer to be analyzed.</para>
        /// <para>要分析的地统计图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input geostatistical layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_geostat_layer { get; set; }


        /// <summary>
        /// <para>Input point</para>
        /// <para>The x,y coordinate of the point for which the Z-value will be calculated.</para>
        /// <para>将计算其 Z 值的点的 x，y 坐标。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input point")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _point_coord { get; set; }


        /// <summary>
        /// <para>Output Z-value</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Z-value")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public double _out_z_value { get; set; }


        public GACalculateZValue SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}